package com.xinjian.jianba.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xinjian.jianba.enity.UserThemeEntity;
import com.xinjian.jianba.exception.ResponseCode;
import com.xinjian.jianba.service.UserThemeService;
import com.xinjian.jianba.utils.JsonUtil;
@RestController
@RequestMapping("/api/v3/jianba/theme")
public class UserThemeControllor extends AbstractController{

	@Autowired
	private UserThemeService userThemeService;
	@PostMapping("/find")
	public String selectAll(){
		List<UserThemeEntity> list=userThemeService.selectAll();
		return this.responseClientJsonData(ResponseCode.SUCCESS, ResponseCode.SUCCESS_MSG,list);
	}
}
